package com.netty.server.config;

import com.netty.dispatcher.MessageDispatcher;
import com.netty.dispatcher.MessageHandlerContainer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: Mr.liu
 * @Date: 2021/8/27 11:52
 * @Version: 1.0.0
 * @Desc:
 */
@Configuration
public class NettyServerConfig {
    @Bean
    public MessageDispatcher messageDispatcher() {
        return new MessageDispatcher();
    }

    @Bean
    public MessageHandlerContainer messageHandlerContainer() {
        return new MessageHandlerContainer();
    }
}
